package com.lhy.vip.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName evaluation
 */
@TableName(value ="evaluation")
@Data
public class Evaluation implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    private String produceName;

    /**
     * 会员名称
     */
    private String vipName;

    /**
     * 评价
     */
    private Integer evaluate;

    /**
     * 评价时间
     */
    private Date createTime;

    /**
     * 页面展示
     */
    private String status;

    /**
     * 是否删除
     */
    private String isDelete;

    /**
     * 物流评分
     */
    private Integer wlEvaluate;

    /**
     * 服务评分
     */
    private Integer fwEvaluate;

    /**
     * 描述评分
     */
    private Integer msEvaluate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Evaluation other = (Evaluation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProduceName() == null ? other.getProduceName() == null : this.getProduceName().equals(other.getProduceName()))
            && (this.getVipName() == null ? other.getVipName() == null : this.getVipName().equals(other.getVipName()))
            && (this.getEvaluate() == null ? other.getEvaluate() == null : this.getEvaluate().equals(other.getEvaluate()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getWlEvaluate() == null ? other.getWlEvaluate() == null : this.getWlEvaluate().equals(other.getWlEvaluate()))
            && (this.getFwEvaluate() == null ? other.getFwEvaluate() == null : this.getFwEvaluate().equals(other.getFwEvaluate()))
            && (this.getMsEvaluate() == null ? other.getMsEvaluate() == null : this.getMsEvaluate().equals(other.getMsEvaluate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProduceName() == null) ? 0 : getProduceName().hashCode());
        result = prime * result + ((getVipName() == null) ? 0 : getVipName().hashCode());
        result = prime * result + ((getEvaluate() == null) ? 0 : getEvaluate().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getWlEvaluate() == null) ? 0 : getWlEvaluate().hashCode());
        result = prime * result + ((getFwEvaluate() == null) ? 0 : getFwEvaluate().hashCode());
        result = prime * result + ((getMsEvaluate() == null) ? 0 : getMsEvaluate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", produceName=").append(produceName);
        sb.append(", vipName=").append(vipName);
        sb.append(", evaluate=").append(evaluate);
        sb.append(", createTime=").append(createTime);
        sb.append(", status=").append(status);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", wlEvaluate=").append(wlEvaluate);
        sb.append(", fwEvaluate=").append(fwEvaluate);
        sb.append(", msEvaluate=").append(msEvaluate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}